PROJECT( mrf )

CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
if(COMMAND cmake_policy)
      cmake_policy(SET CMP0003 NEW)  # Required by CMake 2.7+
endif(COMMAND cmake_policy)

FIND_PACKAGE( OpenCV REQUIRED )

SET(SRCS_ICM
 cvgabor.cpp  cvgabor.h
 icm_test.cpp
 Gibbs.h 
 GaussianProcess.h
 GaussianMRFEnergyDoubleton.h
 )

SET(SRCS_GIBBS
 cvgabor.cpp  cvgabor.h
 gibbs_test.cpp
 Gibbs.h 
 GaussianProcess.h
 GaussianMRFEnergyDoubleton.h
 )

SET(SRCS_MRF
 cvgabor.cpp  cvgabor.h
 mrf_segmentation.cpp
 MRFSegmentation.h
 Gibbs.h 
 GaussianProcess.h
 GaussianMRFEnergyDoubleton.h
 SaveLabelImage.h SaveLabelImage.cpp
 GaborUtility.h GaborUtility.cpp
 )

SET(SRCS_MRF_DIAG
 cvgabor.cpp  cvgabor.h
 mrf_segmentationDiag.cpp
 MRFSegmentationDiag.h
 Gibbs.h 
 GaussianProcess.h
 GaussianMRFEnergyDoubletonDiag.h
 SaveLabelImage.h SaveLabelImage.cpp
 )

SET(SRCS_GIBBS_SUPER
 cvgabor.cpp  cvgabor.h
 supervisedSeg.cpp
 MRFSegmentationDiag.h
 Gibbs.h 
 GaussianProcess.h
 GaussianMRFEnergyDoubleton.h
 SaveLabelImage.h SaveLabelImage.cpp
 GaussianExtractorRGB.h GaussianExtractorRGB.cpp
 )

SET(CMAKE_BUILD_TYPE Release)

#ADD_EXECUTABLE(gibbs_test ${SRCS_GIBBS})
#TARGET_LINK_LIBRARIES(gibbs_test ${OpenCV_LIBS} )
#ADD_EXECUTABLE(icm_test ${SRCS_ICM})
#TARGET_LINK_LIBRARIES(icm_test ${OpenCV_LIBS} )
ADD_EXECUTABLE(mrf ${SRCS_MRF})
TARGET_LINK_LIBRARIES(mrf ${OpenCV_LIBS} )
#ADD_EXECUTABLE(mrf ${SRCS_MRF_DIAG})
#TARGET_LINK_LIBRARIES(mrf ${OpenCV_LIBS} )
#ADD_EXECUTABLE(superGibbs ${SRCS_GIBBS_SUPER})
#TARGET_LINK_LIBRARIES(superGibbs ${OpenCV_LIBS} )
